ReadOnlyListBase Members

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Syntax

C#
[SerializableAttribute]
public abstract class ReadOnlyListBase<T>
Visual Basic (Declaration)
<SerializableAttribute> _
Public MustInherit Class ReadOnlyListBase(Of T)
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class ReadOnlyListBase abstract

Type Parameters

T

The type exposes the following members.

Protected Constructors

Public Methods

  NameDescription
Public methodContains
Determines if the list contains any item that compares equal to item. The implementation simply checks whether IndexOf(item) returns a non-negative value.
(Overrides ReadOnlyCollectionBase<(Of <T>)>..::Contains(T).)
Public methodConvertAll<(Of <TOutput>)>
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration contains the result of applying converter to each item in this collection, in order.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodCopyToOverloaded.
Public methodCountWhere
Counts the number of items in the collection that satisfy the condition defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExists
Determines if the collection contains any item that satisfies the condition defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodFind
Finds the first item in the list that satisfies the condition defined by predicate. If no item matches the condition, than the default value for T (null or all-zero) is returned.
Public methodFindAll
Enumerates the items in the collection that satisfy the condition defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodFindIndexOverloaded.
Public methodFindLast
Finds the last item in the list that satisfies the condition defined by predicate. If no item matches the condition, than the default value for T (null or all-zero) is returned.
Public methodFindLastIndexOverloaded.
Public methodForEach
Performs the specified action on each item in this collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodGetEnumerator
Enumerates all of the items in the list, in order. The item at index 0 is enumerated first, then the item at index 1, and so on.
(Overrides ReadOnlyCollectionBase<(Of <T>)>..::GetEnumerator()().)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOfOverloaded.
Public methodLastIndexOfOverloaded.
Public methodRange
Returns a view onto a sub-range of this list. Items are not copied; the returned IList<T> is simply a different view onto the same underlying items.
Public methodToArray
Creates an array of the correct size, and copies all the items in the collection into the array, by calling CopyTo.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodToString
Shows the string representation of the collection. The string representation contains a list of the items in the collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodTrueForAll
Determines if all of the items in the collection satisfy the condition defined by predicate.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Public methodTryFind
Finds the first item in the list that satisfies the condition defined by predicate.
Public methodTryFindLast
Finds the last item in the list that satisfies the condition defined by predicate.

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyCount
The property must be overridden by the derived class to return the number of items in the list.
(Overrides ReadOnlyCollectionBase<(Of <T>)>..::Count.)
Public propertyItem
The get part of the indexer must be overridden by the derived class to get values of the list at a particular index.

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Add (Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Clear (Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection<(Of <T>)>..::IsReadOnly (Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Remove (Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodIList<(Of <T>)>..::Insert
Explicit interface implemetationPrivate methodIList<(Of <T>)>..::RemoveAt
Explicit interface implemetationPrivate methodICollection..::CopyTo
Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::IsSynchronized
Indicates whether the collection is synchronized.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate propertyICollection..::SyncRoot
Indicates the synchronization object for this collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodIEnumerable..::GetEnumerator
Provides an IEnumerator that can be used to iterate all the members of the collection. This implementation uses the IEnumerator<T> that was overridden by the derived classes to enumerate the members of the collection.
(Inherited from ReadOnlyCollectionBase<(Of <T>)>.)
Explicit interface implemetationPrivate methodIList..::Add
Adds an item to the end of the list. This implementation throws a NotSupportedException indicating that the list is read-only.
Explicit interface implemetationPrivate methodIList..::Clear
Removes all the items from the list, resulting in an empty list. This implementation throws a NotSupportedException indicating that the list is read-only.
Explicit interface implemetationPrivate methodIList..::Contains
Determines if the list contains any item that compares equal to value.
Explicit interface implemetationPrivate methodIList..::IndexOf
Find the first occurrence of an item equal to value in the list, and returns the index of that item.
Explicit interface implemetationPrivate methodIList..::Insert
Insert a new item at the given index. This implementation throws a NotSupportedException indicating that the list is read-only.
Explicit interface implemetationPrivate propertyIList..::IsFixedSize
Returns whether the list is a fixed size. This implementation always returns true.
Explicit interface implemetationPrivate propertyIList..::IsReadOnly
Returns whether the list is read only. This implementation always returns true.
Explicit interface implemetationPrivate propertyIList..::Item
Gets or sets the value at a particular index in the list.
Explicit interface implemetationPrivate methodIList..::Remove
Searches the list for the first item that compares equal to value. If one is found, it is removed. Otherwise, the list is unchanged. This implementation throws a NotSupportedException indicating that the list is read-only.
Explicit interface implemetationPrivate methodIList..::RemoveAt
Removes the item at the given index. This implementation throws a NotSupportedException indicating that the list is read-only.

See Also